/**
 * 
 */
package com.zy.cat.entity.dev.garden;


import java.util.List;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author sunyuancui
 * @date   2020年12月24日
 * 
 */

@Table(name="zy_cat_user_tree",indexes = {
    @Index(name = "pid", columnList = "pid")})
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户果树实体类")
public class CatUserTree {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="pid",columnDefinition = "VARCHAR(30) NOT NULL COMMENT '用户pid'")
	@ApiModelProperty(value = "用户pid", example = "")
    private String pid="";
	
	@Column(name="level",columnDefinition = "int(10) NOT NULL COMMENT '当前等级'")
	@ApiModelProperty(value = "当前等级", example = "")
    private Integer level; 
    
	@Column(name="fertilizer_total",columnDefinition = "int(10) NOT NULL COMMENT '当前等级总需肥料'")
	@ApiModelProperty(value = "当前等级总需肥料", example = "")
    private String fertilizerTotal;
	
	@Column(name="afertilizer",columnDefinition = "int(10) NOT NULL COMMENT '已浇灌肥料'")
	@ApiModelProperty(value = "已浇灌肥料", example = "")
    private Integer afertilizer; 
	
	@Column(name="fertilizer",columnDefinition = "int(10) NOT NULL COMMENT '剩余肥料'")
	@ApiModelProperty(value = "剩余肥料", example = "")
    private Integer fertilizer;
	
	@Column(name="once_fertilizer",columnDefinition = "int(10) NOT NULL COMMENT '单次施肥量'")
	@ApiModelProperty(value = "单次施肥量", example = "")
    private String onceFertilizer; 
	
	@Column(name="first_plant",columnDefinition = "int(10) NOT NULL COMMENT '是否首次种植(0.首次种植、1.继续种植)'")
	@ApiModelProperty(value = "是否首次种植(0.首次种植、1.继续种植)", example = "")
    private Integer firstPlant;
	
	
	@Column(name="id",columnDefinition = "int(10) NOT NULL COMMENT '果树id'")
	@ApiModelProperty(value = "果树id", example = "")
    private Integer id;
	
	@Column(name="title",columnDefinition = "VARCHAR(255) NOT NULL COMMENT '果树标题'")
	@ApiModelProperty(value = "果树标题", example = "")
    private String title=""; 
	
	@Column(name="content",columnDefinition = "VARCHAR(255) NOT NULL COMMENT '果树详情'")
	@ApiModelProperty(value = "果树详情", example = "")
    private String content="";
	
	@Column(name="ic_url",columnDefinition = "VARCHAR(255) NOT NULL COMMENT '果树图片url'")
	@ApiModelProperty(value = "果树图片url", example = "https://")
    private String icUrl="";
}
